package com.hkh.erp.system.bean.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "用户与权限组对应关系视图")
@Entity
@Table(name = "sys_user_privilege_group")
public class UserPrivilegeGroupBean implements Serializable {

    private static final long serialVersionUID = 4283732700114579913L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "权限组编号")
    @Column(name = "privilegeGroupNo",columnDefinition="varchar(20) not null comment '权限组编号'")
    private String privilegeGroupNo;

    @ApiModelProperty(value = "用户编号")
    @Column(name = "userNo",columnDefinition="varchar(20) not null comment '用户编号'")
    private String userNo;

    @Column(name = "createTime",columnDefinition="datetime comment '创建时间'")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @Column(name = "updateTime",columnDefinition="datetime comment '更新时间'")
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @Column(name = "deleteFlag",columnDefinition="bit not null default false comment '删除标记'")
    @ApiModelProperty(value = "删除标记")
    private Boolean deleteFlag;

    @Column(name = "createUser",columnDefinition="varchar(20) null comment '创建人'")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    @Column(name = "updateUser",columnDefinition="varchar(20) null comment '更新人'")
    @ApiModelProperty(value = "更新人")
    private String updateUser;

}
